package com.demo.service.impl;

import com.demo.dao.AccountDao;
import com.demo.service.AccountService;
import com.demo.util.GetApplication;

/**
 * @ClassName AccountServiceImpl
 * @Description TODO
 * @Author Windy
 * @Date 2022/8/26 11:02
 * @Version 1.0
 **/
public class AccountServiceImpl implements AccountService {
    @Override
    public void addEmp() {

        AccountDao service = (AccountDao) GetApplication.getInstance().getBean("accountDao");
//        AccountDao accountDao = (AccountDao) BeansCreat.getInstance("accountDao");
        service.addEmp();
        System.out.println("service----------");
    }
}
